home *** CD-ROM | disk | FTP | other *** search
- Path: news.staffs.ac.uk!bs47c!cm2bcmr
- From: cm2bcmr@bs47c.staffs.ac.uk (A z r a e l)
- Newsgroups: comp.lang.c
- Subject: Q) GCC C PREPROCESSOR
- Date: 11 Mar 1996 09:23:08 GMT
- Organization: Staffordshire University
- Message-ID: <4i0rds$evv@bs33n.staffs.ac.uk>
- NNTP-Posting-Host: bs47c.staffs.ac.uk
- X-Newsreader: TIN [version 1.2 PL2]
-
-
- Hi,
-
- If you can answer the following gcc preprocessor question, please
- email:-
-
- cm2bcmr@bs47c.staffs.ac.uk
-
-
- I am writing a C preprocessor as part of a university project. I am
- using the gcc compiler version 2.7.0 and Linux.
-
- Question:-
-
- The gcc compiler seems to set certain macro definitions before
- preprocessing a source file. These appear to be set depending on the
- gcc command line options.
-
- Can somebody tell me what macro definitions are set? I am compiling
- using the following command line options:-
-
- -ansi -pedantic -Wall -Wstrict-prototypes -Wmissing-prototypes
- -Wnested-externs
-
- If there are other macro definitions set from other command line
- options, can you tell me what these are as well?
-
- Many thanks,
-
- Malcolm.
-